import httpClient from '@/api/axiosInstance'

import { PostModel, PostCatrgoryModel } from './response'
import type { GetPostesApiRequest } from './request'

export const getPostesApi = (data: GetPostesApiRequest) =>
  httpClient.post<null, Array<PostModel>>('/api/Website/postes', data)

export const getPostCategoriesApi = () =>
  httpClient.get<null, PostCatrgoryModel>('/api/Website/post-categories')
